import request from "../util/request";

export const addAdminRequest = (data) => {
  return request.post("/addAdmin", data)
}

export const adminListRequest = ()=>{
  return request.get('/adminList')
}

//删除管理员请求
export const deleteAdmin = (adminName)=>{
  return request.delete('/deleteAdmin',{
    params:{
      adminName
    }
  })
}